package day06;

import java.util.Scanner;

public class homework06 {
    /**   6.
            *   "java woaijava,i liek jajavava,i enjoy java"
            *   "java"
            *   把java的内容删除后为
	 *   "woai,i liek,i enjoy   "*/
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		System.out.println("输入一个字符串:");
		String str = sc.nextLine();
		while(str.indexOf("java")!=-1){
			str=str.replace("java", "");
		}
		System.out.println(str);
	}
}
